#include <REGX52.H>
#include "uart.c"
#include "lcd12864.c"
/**
 * 分别实现横向和竖向间隔的条纹
 * 横条：4个黑色条纹4个白色条纹
 * 竖条：32个黑色条纹32个白色条纹
 */

void main()
{
    unsigned char i, j;
    uart_init();
    lcd_init();
    lcd_clean_screen();

    while (1)
    {
        lcd_display_same_bytes_in_page(0, 0, 0xFF, 128);
        lcd_display_same_bytes_in_page(2, 0, 0xFF, 128);
        lcd_display_same_bytes_in_page(4, 0, 0xFF, 128);
        lcd_display_same_bytes_in_page(6, 0, 0xFF, 128);
        delay(1000);
        lcd_clean_screen();
        for (j = 0; j <= 8; j++)
        {
            for (i = 0; i < 128; i += 4)
            {
                lcd_display_one_byte_in_page(j, i, 0xFF);
            }
        }
        delay(1000);
        lcd_clean_screen();
    }
    
    while (1)
    {
    }
}